//
//  main.c
//  sq
//
//  Created by apple on 2016/12/19.
//  Copyright © 2016年 apple. All rights reserved.
//

#include <stdio.h>

int main(){
    struct DateType
    {
        int year;
        int month;
        int day;
    };
    struct StudentType {
        int num;
        char*name;
        char sex[3];
        struct DateType birthday;
        float score;
    };
    struct StudentType student =
    {
        10168,
        "游子吟",
        "女",
        {1998,3,10},
        100
        
        
    };
    printf("学号：%d\n",student.num);
    printf("姓名：%s\n",student.name);
    printf("性别：%s\n",student.sex);
    printf("生日：%d年%d月%d日\n",student.birthday.year,student.birthday.month,student.birthday.day);
    printf("成绩：%4.1f\n",student.score);
    return 0;
}